#include <iostream>
#include <stdbool.h>
#include "circle.h"

void Circle::setC(int x, int y, int r)
{
    m_cener.setXY(x, y);

    m_r = r;
}

bool Circle::judge(Piont &p)
{
    if(p.distance(m_cener) <= m_r*m_r)
        return true;

    else
        return false;
}